using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class TPI_LOGTransMap : EntityTypeConfiguration<TPI_LOGTrans>
    {
        public TPI_LOGTransMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.Acct)
                .HasMaxLength(40);

            // Table & Column Mappings
            this.ToTable("TPI_LOGTrans");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.Log).HasColumnName("Log");
            this.Property(t => t.Acct).HasColumnName("Acct");
            this.Property(t => t.base1).HasColumnName("base1");
            this.Property(t => t.Base2).HasColumnName("Base2");
        }
    }
}
